home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / AmphibVhcl.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  828b  |  31 lines

  1. #ifndef AMPHIBVHCL_H
  2. #define AMPHIBVHCL_H
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/AmphibVhcl.h,v 3.0 90/05/15 22:43:18 kgorlen Rel $
  5.  
  6. #ifndef MI
  7. #define MI
  8. #endif
  9.  
  10. #include "LandVhcl.h"
  11. #include "WaterVhcl.h"
  12.  
  13. class AmphibVhcl: public LandVhcl, public WaterVhcl {
  14.     DECLARE_MEMBERS(AmphibVhcl);
  15.     unsigned axles;
  16. protected:      // storer() functions for object I/O
  17.     virtual void storer(OIOofd&) const;
  18.     virtual void storer(OIOout&) const;
  19.     virtual void _printOn(ostream& strm =cout) const;
  20. public:
  21.     AmphibVhcl(float h, float l, float d, unsigned a =2)
  22.         : Vehicle(h,l), LandVhcl(h,l,a), WaterVhcl(h,l,d) {}
  23.     virtual void deepenShallowCopy();
  24. #ifndef BUG_39
  25.     virtual void printOn(ostream& strm =cout) const
  26.       { Vehicle::printOn(strm); }
  27. #endif
  28. };
  29.  
  30. #endif
  31.